package com.weactivity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weactivity.dto.Result;
import com.weactivity.dto.registerFormDTO;
import com.weactivity.entity.User;

import javax.servlet.http.HttpSession;
import java.util.Map;
import java.util.concurrent.TimeUnit;

public interface UserService extends IService<User> {

    Result sendCode(String phone, HttpSession session);

    Result sendCode(String phone, HttpSession session, String businessPrefix, Long persistTime, TimeUnit timeUnit) ;


    Result register(registerFormDTO registerForm, HttpSession session);

    User findByPhone(String phone);

    User findByUserName(String userName);

    int updatePassword(String phone,String md5String);

    Map<String, Object> findUserInfo();

    User findByUserNameOrId (String keyword);

    String findNameById(int uid);

}
